package com.hotel.main.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.hotel.main.entity.Client;
import com.hotel.main.service.dao.CustomHibernateDaoSupport;

@Service
public class ClientService extends CustomHibernateDaoSupport implements IClientService {
	
	@Override
	@Transactional
	public void signup(Client client) {
		getHibernateTemplate().save(client);
	}

	public void addInfo(Client client) 
	{
		getHibernateTemplate().update(client);
	}		
}
